package com.ke.service;

import com.ke.pojo.BaseResp;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ArticleOrderService {
    /**
     * 支付功能
     * @param list
     * @return
     */
    String addArticleOrder(List<Integer> list, HttpServletRequest request);

    /**
     * 更改订单状态
     * @param orderId
     * @param trade_status
     */
    void updateOrderStatus(String orderId, String trade_status);

    /**
     * 查询全部订单
     * @param request
     * @return
     */
    BaseResp findAllArticleOrder(HttpServletRequest request);

    /**
     * 删除订单
     * @param request
     * @return
     */
    BaseResp deleteArticleOrder(Map map ,HttpServletRequest request);

    /**
     * 从订单页面发起支付
     * @param id
     * @param request
     * @return
     */
    String addArticleOrderFromOrder(Integer id, HttpServletRequest request);
}
